package www.Zheng;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @Title: Demo5
 * @Author 郑雨杭
 * @Package www.Zheng
 * @Date 2024/7/7 23:22
 * @description: 字节输出流
 */
public class Demo5 {
    public static void main(String[] args) throws FileNotFoundException {
        try(OutputStream outputStream = new FileOutputStream("D:\\gitee仓库\\java\\File\\test.txt")){
            outputStream.write("你好，世界".getBytes());
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
